package org.agilelang.editor.listener;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import org.agilelang.editor.ViewFrame;
import org.agilelang.editor.tool.InfoProject;

public class FileCloseProject implements ActionListener {

    ViewFrame frame;

    public FileCloseProject(ViewFrame frame) {
        this.frame = frame;
    }

    @Override
    public void actionPerformed(ActionEvent e) {
        InfoProject project = new InfoProject();
        project.name = "";
        project.version = "";
        frame.setProject(project);
        frame.closeproject();
    }
}
